package com.smkj.kaoqin.modules.teacher.pojo.db;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 附件表
 * </p>
 *
 * @author yztyear
 * @since 2024-09-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("attachment")
@Schema(description="附件表")
public class Attachment implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键id")
    @TableId(value = "attachment_id", type = IdType.AUTO)
    private Integer attachmentId;

    @Schema(description = "关联假单主键id,属于哪个假单")
    private Integer leaveId;

    @Schema(description = "文件路径")
    private String fileUrl;

    @Schema(description = "文件名")
    private String fileName;

    @Schema(description = "文件类型(0.jpg,1.png,3.pdf)")
    private Integer fileType;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;


}
